package com.hy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hy.common.Result;
import com.hy.entity.Teacher;
import java.util.List;

public interface TeacherService extends IService<Teacher> {

    /**
     * 获取所有教师列表
     */
    List<Teacher> getAllTeachers();

    /**
     * 根据ID获取教师
     */
    Teacher getTeacherById(Long id);

    /**
     * 添加教师
     */
    boolean addTeacher(Teacher teacher);

    /**
     * 修改教师
     */
    boolean updateTeacher(Teacher teacher);

    /**
     * 删除教师
     */
    boolean deleteTeacher(Long id);

    /**
     * 给教师点赞
     */
    Result<Void> likeTeacher(Teacher teacher);

    Teacher getLessonTeacherName(Integer teacherId);
    List<Teacher> getTeachersByLessonId();
}
